<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="FlexVersion,mx.core.FlexVersion,CURRENT_VERSION,VERSION_2_0,VERSION_2_0_1,VERSION_3_0,VERSION_ALREADY_READ,VERSION_ALREADY_SET,compatibilityErrorFunction,compatibilityVersion,compatibilityVersionString" name="keywords">
<title>mx.core.FlexVersion</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'FlexVersion - Zentrum virtUOS: virtPresenter';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">virtPresenter AsDoc</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mx/core/FlexVersion.html&amp;mx/core/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;FlexVersion</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class FlexVersion"); titleBar_setSubNav(true,true,false,false,false,false,false,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mx.core</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class FlexVersion</td>
</tr>
</table>
<p></p> 
  This class controls the backward-compatibility of the framework.
  With every new release, some aspects of the framework such as behaviors, 
  styles, and default settings, are changed which can affect your application.
  By setting the <code>compatibilityVersion</code> property, the behavior can be changed
  to match previous releases.
  This is a 'global' flag; you cannot apply one version to one component or group of components
  and a different version to another component or group of components.
 <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#compatibilityErrorFunction">compatibilityErrorFunction</a> : Function<div class="summaryTableDescription">[static] 
      A function that gets called when the compatibility version
      is set more than once, or set after it has been read.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#compatibilityVersion">compatibilityVersion</a> : uint<div class="summaryTableDescription">[static] 
      The current version that the framework maintains compatibility for.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#compatibilityVersionString">compatibilityVersionString</a> : String<div class="summaryTableDescription">[static] 
      The compatibility version, as a string of the form "X.X.X".</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#CURRENT_VERSION">CURRENT_VERSION</a> : uint = 0x03000000<div class="summaryTableDescription">[static] 
      The current released version of the Flex SDK, encoded as a uint.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION_2_0">VERSION_2_0</a> : uint = 0x02000000<div class="summaryTableDescription">[static] 
      The <code>compatibilityVersion</code> value of Flex 2.0,
      encoded numerically as a <code>uint</code>.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION_2_0_1">VERSION_2_0_1</a> : uint = 0x02000001<div class="summaryTableDescription">[static] 
      The <code>compatibilityVersion</code> value of Flex 2.0.1,
      encoded numerically as a <code>uint</code>.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION_3_0">VERSION_3_0</a> : uint = 0x03000000<div class="summaryTableDescription">[static] 
      The <code>compatibilityVersion</code> value of Flex 3.0,
      encoded numerically as a <code>uint</code>.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION_ALREADY_READ">VERSION_ALREADY_READ</a> : String = "versionAlreadyRead"<div class="summaryTableDescription">[static]
      A String passed as a parameter
      to the <code>compatibilityErrorFunction()</code> method 
      if the compatibility version has already been read.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#VERSION_ALREADY_SET">VERSION_ALREADY_SET</a> : String = "versionAlreadySet"<div class="summaryTableDescription">[static]
      A String passed as a parameter
      to the <code>compatibilityErrorFunction()</code> method
      if the compatibility version has already been set.</div>
</td><td class="summaryTableOwnerCol">FlexVersion</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="compatibilityErrorFunction"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">compatibilityErrorFunction</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>compatibilityErrorFunction:Function</code>&nbsp;&nbsp;[read-write]<p> 
      A function that gets called when the compatibility version
      is set more than once, or set after it has been read.
      If this function is not set, the SDK throws an error.
      If set, File calls this function, but it is
      up to the developer to decide how to handle the call.
      This function will also be called if the function is set more than once.     
      The function takes two parameters: the first is a <code>uint</code>
      which is the version that was attempted to be set; the second
      is a string that is the reason it failed, either
      <code>VERSION_ALREADY_SET</code> or <code>VERSION_ALREADY_READ</code>.
     </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get compatibilityErrorFunction():Function</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set compatibilityErrorFunction(value:Function):void</code>
<br>
</div>
<a name="compatibilityVersion"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">compatibilityVersion</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>compatibilityVersion:uint</code>&nbsp;&nbsp;[read-write]<p> 
      The current version that the framework maintains compatibility for.  
      This defaults to <code>CURRENT_VERSION</code>.
      It can be changed only once; changing it a second time
      results in a call to the <code>compatibilityErrorFunction()</code> method
      if it exists, or results in a runtime error. 
      Changing it after the <code>compatibilityVersion</code> property has been read results in an error
      because code that is dependent on the version has already run.
      There are no notifications; the assumption is that this is set only once, and this it is set
      early enough that no code that depends on it has run yet.
           </p><p>The default value is <code>FlexVersion.CURRENT_VERSION</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get compatibilityVersion():uint</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set compatibilityVersion(value:uint):void</code>
<br>
</div>
<a name="compatibilityVersionString"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">compatibilityVersionString</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>compatibilityVersionString:String</code>&nbsp;&nbsp;[read-write]<p> 
      The compatibility version, as a string of the form "X.X.X".
      This is a pass-through to the <code>compatibilityVersion</code>
      property, which converts the number to and from a more
      human-readable String version.
     </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get compatibilityVersionString():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set compatibilityVersionString(value:String):void</code>
<br>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="CURRENT_VERSION"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">CURRENT_VERSION</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const CURRENT_VERSION:uint = 0x03000000</code><p> 
      The current released version of the Flex SDK, encoded as a uint.
     </p></div>
<a name="VERSION_2_0"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION_2_0</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION_2_0:uint = 0x02000000</code><p> 
      The <code>compatibilityVersion</code> value of Flex 2.0,
      encoded numerically as a <code>uint</code>.
      Code can compare this constant against
      the <code>compatibilityVersion</code>
      to implement version-specific behavior.
     </p></div>
<a name="VERSION_2_0_1"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION_2_0_1</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION_2_0_1:uint = 0x02000001</code><p> 
      The <code>compatibilityVersion</code> value of Flex 2.0.1,
      encoded numerically as a <code>uint</code>.
      Code can compare this constant against
      the <code>compatibilityVersion</code>
      to implement version-specific behavior.
     </p></div>
<a name="VERSION_3_0"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION_3_0</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION_3_0:uint = 0x03000000</code><p> 
      The <code>compatibilityVersion</code> value of Flex 3.0,
      encoded numerically as a <code>uint</code>.
      Code can compare this constant against
      the <code>compatibilityVersion</code>
      to implement version-specific behavior.
     </p></div>
<a name="VERSION_ALREADY_READ"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION_ALREADY_READ</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"</code><p>
      A String passed as a parameter
      to the <code>compatibilityErrorFunction()</code> method 
      if the compatibility version has already been read.
     </p></div>
<a name="VERSION_ALREADY_SET"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VERSION_ALREADY_SET</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const VERSION_ALREADY_SET:String = "versionAlreadySet"</code><p>
      A String passed as a parameter
      to the <code>compatibilityErrorFunction()</code> method
      if the compatibility version has already been set.
     </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
